const webpack = require('webpack')

module.exports = {
    css: {
        loaderOptions: {
            postcss: {
                postcssOptions: {
                    map: false,
                    plugins: {
                        "postcss-plugin": {}
                    }
                }
            },
            less:{
                lessOptions: {
                    javascriptEnabled: true
                } 
            }
        }
    },
    chainWebpack: config => {
        config.plugin('provide').use(webpack.ProvidePlugin, [{
          'window.Quill': 'quill'
        }])
    },
    lintOnSave: false,
    configureWebpack: {
        plugins: [
          new webpack.ProvidePlugin({
            'window.Quill': 'quill/dist/quill.js',
            'Quill': 'quill/dist/quill.js'
          })
        ]
      }

}